﻿<!DOCTYPE html>
@using KMF.WebUI.Areas.KMFadmin.Infrastructure;
@*@{
    var KMFDomain = KMF.WebUI.Areas.KMFadmin.CustomHelpers.FunctionHelper.returnConfig("Domainname");
}*@
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/KMFAdmin/style")
    @Scripts.Render("~/bundles/KMFAdmin/modernizr")
</head>
<body>
    <div id="ajaxBusy" style="display: none;">
        <span>&nbsp;</span>
    </div>
    <div id="wraper">
        <div id="header">
            <div class="btn-icon-ai header-logo">
                <a href="@Url.Action("Index","AdminHome")"><i class="icon-KMF"></i>KMF</a>
                <span>company</span>
            </div>
            <div class="header-nav">
                @Html.Partial("Menu")
            </div>
            <div class="del-cache btn-icon-ai">
                <a href="javascript:void(0);" style="padding-left:10px;"><i class="icon-cached"></i>Xóa cache</a>
                @if (Session[SessionConfig.SessionAdminLogged] != null)
                {
                    <span>| <a href="javascript:void(0);" id="btnLogout" style="padding: 0px 10px 0px 5px; background: #e1e1e1; color: #333;"><i class="icon-logout"></i>Thoát</a></span>
                }

            </div>
            <div class="clr"></div>
        </div> <!-- END #header -->
        @RenderSection("LeftMenu", false)

        <div id="main">
            @RenderBody()
        </div> <!-- END #main -->
        <div id="Footer">
            CopyRight @@2013 KMF<br />
            <span style="font-size:11px;">support: 0988.388.000<br />hngiang84@gmail.com</span>

        </div>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/KMFAdmin/jqueryCommon")
    @RenderSection("scripts", false)
    <script>
        $(function () {
            setHeightLeftMenu();
        });

        $(window).resize(function () {
            setHeightLeftMenu();
        });

        // DELETE CACHE ------------------------------
        $('.del-cache a').click(function () {
            $.ajax({
                url: "/Cache/DeleteCache",
                data: { userName: 'tuananh', pass: '0320853356' },
                type: 'GET',
                dataType: 'jsonp',
                jsonp: 'callback',
                success: function (data) {
                    alert(data);
                },
                error: function (data) {
                    console.log('Da co loi xay ra');
                }
            });

        });

        // Check has quick menu -----------------------
        if ($('#left').length > 0) {
            $('#main').css({ 'margin-left': '230px' });
        }
    </script>
</body>
</html>
